package com.ruoyi.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.model.LoginApiBody;
import com.ruoyi.common.core.domain.model.LoginBody;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.sms.SendSms;
import com.ruoyi.framework.web.service.SysLoginService;
import com.ruoyi.framework.web.service.SysRegisterService;
import com.ruoyi.system.domain.SysOperLog;
import com.ruoyi.system.domain.TbCards;
import com.ruoyi.system.service.ISysUserService;
import com.ruoyi.system.service.ITbCardsService;

import io.jsonwebtoken.lang.Assert;

@RestController
@RequestMapping("/api/card")
public class CardAppController extends BaseController{
	@Autowired
	private ITbCardsService cardService;
	@Autowired
	private SysLoginService loginService;
	@Autowired
	private SysRegisterService registerService;
	@Autowired
	private ISysUserService userService;
	@GetMapping("/search")
	public AjaxResult search(@RequestParam String iccid) {
		TbCards selectTbCardsByIccid = cardService.selectTbCardsByIccid(iccid);
		return AjaxResult.success(selectTbCardsByIccid);
		
	}
}
